package com.huluobo.a2204monthdemo.category

import androidx.lifecycle.MutableLiveData
import com.huluobo.base.bean.CategoryBeanResult
import com.huluobo.base.viewmodel.BaseViewModel

/**
 *  Created by LC on 2024/8/10.
 */
class CategoryViewModel : BaseViewModel<CategoryRepo>() {

    val categoryListSuccess = MutableLiveData<CategoryBeanResult>()
    val categoryListFailed = MutableLiveData<String>()

    fun getCategoryList() {
        repo.getCategoryList(categoryListSuccess, categoryListFailed)
    }

    override fun createRepo(): CategoryRepo = CategoryRepo()
}